package cn.ml.chuji.oop.valueAndReference;

public class ValueTest2 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.age); //0
        ValueTest2.change(person);
        System.out.println("调用change后结果："+person.age);
    }

    public static void change(Person person){
        //person是一个具体的人，值可以改变
        person.age = 10;
    }

}


//定义一个类
class Person{
    int age;
}